package com.easylinkin.linkappapi.elasticsearch.entity;

import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * 能源分析查询模型
 * </p>
 *
 * @author 徐国庆
 * @since 2020-04-14
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EsResponsemodel {

    private IPage<DeviceEnergyReal> record;

    private EsQuerymodel model;

    /**
     * 过去12个月的统计
     */
    private Map<String, Double> lastYearMonthMap;

    /**
     * 过去30天统计
     */
    private Map<String, Double> LastThirtyDay;

    /**
     * 过去7天统计
     */
    private Map<String, Double> LastSevenDay;

    /**
     * 设备当日用电量
     */

    private Double dayEnergy;

    /**
     * 昨天用电总量
     */
    private Double   yesterDaySum;
    /**
     * z昨日用电总量环比
     */
    private String   dayOnDayhPer;

    /**
     * 截止昨天总用电量
     */
    private Double sumEnergy;

    /**
     * 设备统计时间
     */

    private String  statisticHisTime;

    /**
     * 设备统计实时
     */
    private String  statisticCurTiem;
    
    /**
     * 过去7天的累计
     */

    private Double  thirtyDaySum;

    /**
     * 过去30天的累计
     */
    private Double  sevenDaySum;
    
    private int onDutyToday;
    private int onDutyYesterday;
    private int totalInToday;
    private int totalOutToday;
    private int onDuty7Day;
    private int onDuty7DayAverage;
    private int onDuty30Day;
    private int onDuty30DayAverage;

}
